/*
 * DBManager.h
 *
 *  Created on: Sep 18, 2016
 *      Author: root
 */

#ifndef BASE_DATABASE_YDBMANAGER_H_
#define BASE_DATABASE_YDBMANAGER_H_
#include "yConnPool.h"

class DBManager {
private:
	static ConnPool* pool;
public:
	static Connection* getConnection();
	static void closeConnection(Connection*conn);
	static void closeConnection(Connection*conn,PreparedStatement* state,ResultSet *result);
	static void init();
	static void destory();

};

#endif /* BASE_DATABASE_YDBMANAGER_H_ */
